<?php

namespace App\Http\Controllers\Admin;

use App\Models\Category;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
/**
 * 文章分类管理
 * @author vicleos 510331882@qq.com
 */
class CategoryController extends Controller
{

	//admin/category [GET]
	public function index()
	{
		$categorys = (new Category)->tree();
		// dd($categorys);
		return view('admin.category.index')->with(['data' => $categorys]);
	}

	//admin/category [POST]
	public function store()
	{
		return 'store';
	}

	//admin/category/create
	public function create()
	{
		return 'create';
	}

	//admin/category/show
	public function show()
	{
		return 'show';
	}

	//admin/category/update
	public function update()
	{
		return 'update';
	}

	//admin/category/destroy
	public function destroy()
	{
		return 'destroy';
	}

	//admin/category/edit
	public function edit()
	{
		return 'edit';
	}
}
